@using Microsoft.AspNetCore.Identity

@*@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager*@

@if (User.Identity.IsAuthenticated)
{
    <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">@User.Claims.First(i => i.Type == "name").Value <span class="caret"></span></a>
            <ul class="dropdown-menu">
                <li><a href="/Account/Logout">Log out</a></li>
            </ul>
        </li>
    </ul>

}
else
{
    <ul class="nav navbar-nav navbar-right">
        @*<li><a asp-area="Identity" asp-page="/Account/Login">Login</a></li>*@
        <li><a asp-page="/Account/Login">Login</a></li>
        @*<li><a asp-page="/About">Login</a></li>*@
    </ul>
}